<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        window.onload = function () {
            let ua = window.navigator.userAgent.toLocaleLowerCase()
           // let murl ="//m.jd.com"
            let reg =/iphone|android|symbianos|windows\sphone/g
            if (reg .test(ua )) {
                window.location.href = "./m.html" 
                console.log(ua)
            }else{
                console.log(ua)  
               // window.location.href = "//www.jd.com"
                window.location.href = "./web.html"
            }
}
    </script>
</head>
<body>
    
    <h1>这是一个web 测试页面</h1>
</body>
</html>